﻿@model CreatePostModel
@using LastoRevival.Service.Contracts.Models;


@{ ViewBag.Title = LanguageLoader.GetWord("CreateThreadTitle"); }
@{ 
	this.AddIndexBreadCrumb();
	this.AddForumBreadCrumb(Model.ForumID);
	this.AddCurrentBreadCrumb(LanguageLoader.GetWord("CreateThreadTitle"));
}
	
@Html.ValidationSummary()

@using (Html.BeginForm("Create", "Post", FormMethod.Post))
{
	<div class="postform">	
	
		@Html.Hidden("ForumID", Model.ForumID)

		@Html.Partial("PostForm", Model)
		
		<span id="buttons">
			<button id="post-message" type="submit">@LanguageLoader.GetWord("PostButtonLabel")</button>		
			@Html.Partial("PreviewButton")	
			<button id="reset" type="reset">@LanguageLoader.GetWord("ResetButtonLabel")</button>
		</span>
	</div>
}
